#include<stdio.h>
int main()
{
	int arr[7] = { 9,8,100,0,4,3,1 };
	for (int i = 0; i < 7 - 1; ++i)
	{
		for (int j = 0; j < 7 - 1 - i; ++j)
		{
			if (arr[j] > arr[j + 1])
			{
				int tmp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1]=tmp;
			}
		}
	}
	for (int i = 0; i < 7; ++i)
	{
		printf("%d ", arr[i]);
	}
}